package org.seedltd.upms.model.detection.form;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.seedltd.core.validation.Save;

import lombok.Getter;
import lombok.Setter;

/**
 *
 * 售卖机货道维护表单
 * 
 * @author laizuan
 * @version 1.0
 * @since 2021/09/23
 */
@Getter
@Setter
public class DetectionTerminalPipelineForm {
    /**
     * 售卖机主键
     */
    @NotNull(message = "售卖机主键不能为空", groups = {Save.class})
    private Long terminalId;

    /**
     * 机柜ID
     */
    @Length(message = "机柜ID长度不能超过16个字符", max = 16, groups = {Save.class})
    private String equipmentUuid;

    /**
     * 商品可售数量
     */
    private Integer presentNumber;

    /**
     * 货道号
     */
    @Length(message = "货道号长度不能超过8个字符", max = 8, groups = {Save.class})
    private String arrivalName;

    /**
     * 货道启用状态。1正常 -1货道异常 -2禁用 -3停售
     */
    private Integer commodityCondition;

}
